home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / C / ASAP / resident.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-09-09  |  1.4 KB  |  38 lines

  1. /*****************************************************************************
  2.  *                                                                           *
  3.  * ASAP - Amiga Software Authoring Platform                                  *
  4.  *                                                                           *
  5.  * Written by Laurie Perrin                                                  *
  6.  *                                                                           *
  7.  * AResident wrapper class                                                   *
  8.  *                                                                           *
  9.  *****************************************************************************/
  10.  
  11. #ifndef ASAP_AResident_H
  12. #define ASAP_AResident_H
  13.  
  14. extern "C"
  15. {
  16.  #include <EXEC/Resident.h>
  17.  #include <Proto/EXEC.h>
  18. }
  19.  
  20. class AResident : public Resident
  21. {
  22.  public:
  23.  inline static AResident * FindResident(UBYTE * name);
  24.  inline APTR InitResident(unsigned long segList);
  25. };
  26. //----------------------------------------------------------------------------
  27. AResident * AResident::FindResident (UBYTE * name)
  28. {
  29.  return (AResident *) ::FindResident(name);
  30. }
  31. //----------------------------------------------------------------------------
  32. APTR AResident::InitResident (unsigned long segList)
  33. {
  34.  return ::InitResident(this, segList);
  35. }
  36.  
  37. #endif
  38.